package igiant.common.generator.base;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * @Title: BaseModel
 * @Package: igiant.common.generator.base
 * @Description: 实体基类，包含实体公共属性
 * @Author: zrd <zwd_1222@126.com>
 * @date: 2016/9/22
 * @Version: V1.0
 */
public class BaseEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = -6787816334802320028L;

    /** 主键 */
    @TableId(type = IdType.INPUT)
    private String id;

    /** 状态标志位（0），用户删除（1） */
    @TableField(value = "status")
    private String status;

    /** 创建者 */
    @TableField(value = "create_user_name")
    private String createUserName;

    /** 创建时间 */
    @TableField(value = "create_time")
    private Date createTime;

    /** 更新用户 */
    @TableField(value = "update_user_name")
    private String updateUserName;

    /** 更新时间 */
    @TableField(value = "update_time")
    private Date updateTime;

    /** 创建人ID */
    @TableField(value = "create_user_id")
    private String createUserId;

    /** 更新人ID */
    @TableField(value = "update_user_id")
    private String updateUserId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
